import request from '@/utils/request'

// 查询老人健康体检列表
export function listCheckupInfo(query) {
  return request({
    url: '/business/checkupInfo/list',
    method: 'get',
    params: query
  })
}

// 查询老人健康体检详细
export function getCheckupInfo(id) {
  return request({
    url: '/business/checkupInfo/' + id,
    method: 'get'
  })
}

// 新增老人健康体检
export function addCheckupInfo(data) {
  return request({
    url: '/business/checkupInfo',
    method: 'post',
    data: data
  })
}

// 修改老人健康体检
export function updateCheckupInfo(data) {
  return request({
    url: '/business/checkupInfo',
    method: 'put',
    data: data
  })
}

// 删除老人健康体检
export function delCheckupInfo(id) {
  return request({
    url: '/business/checkupInfo/' + id,
    method: 'delete'
  })
}
